<template>
  <div class="goods">
    <goods-list-item
      v-for="(item, index) in goods"
      :key="index"
      :goods-item="item"
      :list="list"
      :name="name"
    />
  </div>
</template>

<script>
import GoodsListItem from "./GoodsListItem";

export default {
  name: "GoodsList",
  props: {
    goods: {
      type: Array,
      default: {},
    },
    list: {
      type: Number,
    },
    name:{
      type:String,
      default:null
    }
  },
  components: {
    GoodsListItem,
  },
  data() {
    return {};
  },
  mounted() {},
  methods: {},
};
</script>

<style lang="css" scoped >
.goods {
  display: flex;
  flex-wrap: wrap;
}
</style>